| 
                
               | 
              
                
               | 
              
                @@ -2,9 +2,10 @@ 
               | 
            
            
            
              | 
                2
               | 
              
                2
               | 
              
                  
               | 
            
            
            
              | 
                3
               | 
              
                3
               | 
              
                 from django.conf import settings 
               | 
            
            
            
              | 
                4
               | 
              
                4
               | 
              
                 from django.db import transaction 
               | 
            
            
            
              | 
                5
               | 
              
                
               | 
              
                -from django.db.models import Count, F, Sum 
               | 
            
            
            
              | 
                
               | 
              
                5
               | 
              
                +from django.db.models import Sum 
               | 
            
            
            
              | 
                6
               | 
              
                6
               | 
              
                 from django_logit import logit 
               | 
            
            
            
              | 
                7
               | 
              
                7
               | 
              
                 from django_models_ext.provincemodels import ProvinceShortModelMixin 
               | 
            
            
            
              | 
                
               | 
              
                8
               | 
              
                +from django_query import get_query_value 
               | 
            
            
            
              | 
                8
               | 
              
                9
               | 
              
                 from django_response import response 
               | 
            
            
            
              | 
                9
               | 
              
                10
               | 
              
                 from TimeConvert import TimeConvert as tc 
               | 
            
            
            
              | 
                10
               | 
              
                11
               | 
              
                  
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -342,7 +343,7 @@ def ymdtj(brand_id, ymd, lastymd): 
               | 
            
            
            
              | 
                342
               | 
              
                343
               | 
              
                  
               | 
            
            
            
              | 
                343
               | 
              
                344
               | 
              
                 @logit 
               | 
            
            
            
              | 
                344
               | 
              
                345
               | 
              
                 def v2_tj_distributor(request): 
               | 
            
            
            
              | 
                345
               | 
              
                
               | 
              
                -    brand_id = request.POST.get('brand_id', settings.KODO_DEFAULT_BRAND_ID)
               | 
            
            
            
              | 
                
               | 
              
                346
               | 
              
                +    brand_id = get_query_value(request, 'brand_id', settings.KODO_DEFAULT_BRAND_ID) 
               | 
            
            
            
              | 
                346
               | 
              
                347
               | 
              
                  
               | 
            
            
            
              | 
                347
               | 
              
                348
               | 
              
                     # year = tc.local_string(format='%Y') 
               | 
            
            
            
              | 
                348
               | 
              
                349
               | 
              
                     month = tc.local_string(format='%Y%m') 
               |